package com.service.bean.garbage;

import com.service.bean.device.Vehicle;

/**
 * 称重接口
 * @author zyf
 *
 */
public class SendWeight extends GarbageSend{
	
	public SendWeight() {}
	
	public SendWeight(Vehicle vehicle,GarbageBean bean) {
		super();
		this.vehicle = vehicle;
		this.garbageBean = bean;
	}
	
	/**
	 * 拼接参数
	 */
	@Override
	public String toString(){
		String value ="{"+ "\"MSKey\":\""+mskey+"\",\"CommntNo\":\""+garbageBean.getDriverNumber()+"\",\"CarNo\":\""+vehicle.equipmentId+"\","
						+"\"PlateNo\":\""+vehicle.plateNO+"\","+"\"DeviceNo\":\""+vehicle.device.deviceNo+"\","+"\"GarbageType\":\"02\" "+","+"\"GrossWeight\":\"0"+"\","
						+"\"TareWeight\":\"0\" "+","+"\"NetWeight\":\""+garbageBean.getCollectionAmt()+"\","+"\"Lng\":\""+garbageBean.getLng()+"\","
						+"\"Lat\":\""+garbageBean.getLat()+"\","+"\"WeightTime\":\""+sdf.format(garbageBean.getGpsTime())+"\""+"}";
		return value;
	}
	
}
